package com.zhu.netty.handler;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;

/**
 * Created by ehsy_it on 2016-04-26.
 */
public class StringOutInBoundHandler extends ChannelInboundHandlerAdapter {

    @Override
    public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
        if(msg instanceof String) {
            String msgStr = (String) msg;
            System.out.println(msgStr);
        }
    }
}
